import styled from 'styled-components';

const CONTAINER_LEFT = 25;
const CONTAINER_TOP = 40;

export const Container = styled.div`
  width: 100%;
  height: 100%;
  position: relative;
`;

export const Title = styled.div`
  font-family: 'Papyrus';
  position: absolute;
  left: ${CONTAINER_LEFT}px;
  top: ${CONTAINER_TOP}px;

  div:nth-child(1) {
    width: 700px;
    margin-bottom: 30px;
    font-size: 50px;
    font-weight: 900;
    line-height: 0.9;
  }

  div:nth-child(2) {
    width: 700px;
    font-size: 45px;
    font-weight: 500;
    line-height: 0.9;
  }
`;

export const SubTitle = styled.div`
  display: flex;
  flex-direction: row-reverse;
  position: absolute;
  right: ${CONTAINER_LEFT}px;
  top: ${CONTAINER_TOP}px;
  font-family: Georgia;
  font-size: 35px;
  display: flex;
  line-height: 1.2;

  span {
    writing-mode: tb-rl;
    text-align: justify;
    text-align-last: justify;
    text-align: justify;
    text-justify: distribute-all-lines;
  }
`;

export const School = styled.div`
  position: absolute;
  left: ${CONTAINER_LEFT}px;
  bottom: ${CONTAINER_TOP}px;
`;

export const Footer = styled.div`
  position: absolute;
  right: ${CONTAINER_LEFT}px;
  bottom: ${CONTAINER_TOP}px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
`;

export const OperationBox = styled.div`
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  position: absolute;
  right: ${CONTAINER_LEFT}px;
  bottom: ${CONTAINER_TOP + 100}px;
  cursor: pointer;

  div:nth-child(1) {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;

    span {
      animation: 2s row-up linear infinite normal;
    }
  }

  div:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: space-between;
    justify-content: center;
    font-size: 50px;
    font-weight: bold;
    line-height: 1;
  }

  @keyframes row-up {
    0% {
      transform: translate3d(-80%, 0, 0);
    }
    100% {
      transform: translate3d(80%, 0, 0);
      display: none;
    }
  }
`;
